package cn.com.haopy.yue.ai.db.service.hos.impl;

import cn.com.haopy.yue.ai.db.entity.arisk.AIRiskPapersDrugs;
import cn.com.haopy.yue.ai.db.mapper.arisk.AIRiskPapersDrugsMapper;
import cn.com.haopy.yue.ai.db.service.BaseServiceImpl;
import cn.com.haopy.yue.ai.db.service.hos.AIRiskPapersDrugsService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: TODO
 * @Author DuTao
 * @Date 2025/3/28 8:56
 */
@Service
public class AIRiskPapersDrugsServiceImpl extends BaseServiceImpl<AIRiskPapersDrugsMapper, AIRiskPapersDrugs> implements AIRiskPapersDrugsService {

    @Override
    public List<AIRiskPapersDrugs> getByPaperId(Integer paperId) {
        LambdaQueryWrapper<AIRiskPapersDrugs> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(AIRiskPapersDrugs::getPaperId, paperId);
        return baseMapper.selectList(queryWrapper);
    }
}
